package generics;

import java.util.*;

/**
 * @author 杨宇
 * @version 1.0 2016/11/3
 */
public class GenericsAndCovariance {

    public static void main(String[] args) {
        List<? extends Fruit> flist = new ArrayList<Apple>();
        flist.add(null);
        Fruit f = flist.get(0);
    }
}